<?php include __DIR__ ."../../PHP/db.php"; ?>
<!-- PHP FUNCTION HERE --> 
<?php
// LIST OF APPLICATION
 $sign_up_list = listEmployerSignUp(); 
?>

<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
  <title>FLSS ADMIN</title>
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width">        
  <link rel="stylesheet" href="css/admin.css">
  
</head>
<body>
  <div class="navbar navbar-inverse" role="navigation">
      <div class="navbar-header">
        <div class="logo"><h1>(ADMINISTRATOR)</h1></div>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button> 
      </div>   
    </div>
    <div class="template-page-wrapper">
      <div class="navbar-collapse collapse templatemo-sidebar">
        <ul class="templatemo-sidebar-menu">
          <li>
            <form class="navbar-form">
              <input type="text" class="form-control" id="templatemo_search_box" placeholder="Search...">
              <span class="btn btn-default">Go</span>
            </form>
          </li>
          <li><a href="adminHome.php"><i class="fa fa-home"></i>Home</a></li>
          <li class="sub open">
            <a href="javascript:;">
              <i class="fa fa-database"></i> Notifications <div class="pull-right"><span class="caret"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="AppReg.php">Applicant Registration</a></li>
              <li><a href="EmpReg.php">Employer posts Registration</a></li>
              <li><a href="EmpIntSched.php">Employer Interview Schedules</a></li>             
              <li class="active"><a href="#">Employer Sign Up Approval</a></li>
              <li><a href="HiredApp.php">Hired Applicants</a></li>
            </ul>
          </li>
          <li><a href="tables.php"><i class="fa fa-users"></i>Manage Users</a></li>
          <li><a href="archives.php"><i class="fa fa-book"></i>Archives</a></li>
          <li><a href="javascript:;" data-toggle="modal" data-target="#confirmModal"><i class="fa fa-sign-out"></i>Sign Out</a></li>
        </ul>
      </div><!--/.navbar-collapse -->

      <div class="templatemo-content-wrapper">
        <div class="templatemo-content">
          <ol class="breadcrumb">
            <li><a href="adminHome.html">Admin Panel</a></li>
            <li class="active">Overview</li>
            <li><a href="sign-in.php">Sign In Form</a></li>
          </ol>
          <h1>Employer Sign up</h1>
          <p>Here are the list of Employers who wants to be a part of FLSS.</p>
       

          <table class="table table-striped table-hover table-bordered">
                        <thead>
                          <tr>
                            <th>Owner/Representative Name</th>
                            <th>Company Email</th>
                            <th>Contact</th>
                            <th>Accept / Decline</th>
                          </tr>
                        </thead>
                        <?php while($list = mysql_fetch_array($sign_up_list)){ ?>
                          <tr id = "e_id_<?=$list['employer_id']?>" class = "e_id_<?=$list['employer_id']?>">
                            <td><?=$list['hr_name']?></td>
                            <td><?=$list['email']?></td>
                            <td><?=$list['contact']?></td>
                            <td><a class="btnAccept" e_id="<?=$list['employer_id']?>"e_statusid="<?=$list['e_statusid']?>" href="#">Accept</a>/<a class="btnDecline"   e_id="<?=$list['employer_id']?>"e_statusid="<?=$list['e_statusid']?>" href="#">Decline</a></td>
                          </tr>
                         <?php } ?>
                      </table>
             
      <!-- Modal -->
      <div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
              <h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
            </div>
            <div class="modal-footer">
              <a href="sign-in.html" class="btn btn-primary">Yes</a>
              <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
            </div>
          </div>
        </div>
      </div>
      <footer class="templatemo-footer">
        <div class="templatemo-copyright">
          <center><p>Copyright &copy; 2015 Famous Labour Supply Services</p></center>
        </div>
      </footer>
    </div>

    <script src="js/jquery.min.js"></script>
    <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/Chart.min.js"></script>
    <script src="js/admin.js"></script>
    <script type="text/javascript">
    // Line chart
    var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
    var lineChartData = {
      labels : ["January","February","March","April","May","June","July"],
      datasets : [
      {
        label: "My First dataset",
        fillColor : "rgba(220,220,220,0.2)",
        strokeColor : "rgba(220,220,220,1)",
        pointColor : "rgba(220,220,220,1)",
        pointStrokeColor : "#fff",
        pointHighlightFill : "#fff",
        pointHighlightStroke : "rgba(220,220,220,1)",
        data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
      },
      {
        label: "My Second dataset",
        fillColor : "rgba(151,187,205,0.2)",
        strokeColor : "rgba(151,187,205,1)",
        pointColor : "rgba(151,187,205,1)",
        pointStrokeColor : "#fff",
        pointHighlightFill : "#fff",
        pointHighlightStroke : "rgba(151,187,205,1)",
        data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
      }
      ]

    }

    window.onload = function(){
      var ctx_line = document.getElementById("templatemo-line-chart").getContext("2d");
      window.myLine = new Chart(ctx_line).Line(lineChartData, {
        responsive: true
      });
    };

    $('#myTab a').click(function (e) {
      e.preventDefault();
      $(this).tab('show');
    });

    $('#loading-example-btn').click(function () {
      var btn = $(this);
      btn.button('loading');
      // $.ajax(...).always(function () {
      //   btn.button('reset');
      // });
  });

  </script>

<script type="text/javascript" src="../js/accept_decline_employer.js"></script>

</body>
</html>